
cc.Class({
    extends: cc.Component,

    properties: {
        // foo: {
        //     // ATTRIBUTES:
        //     default: null,        // The default value will be used only when the component attaching
        //                           // to a node for the first time
        //     type: cc.SpriteFrame, // optional, default is typeof default
        //     serializable: true,   // optional, default is true
        // },
        // bar: {
        //     get () {
        //         return this._bar;
        //     },
        //     set (value) {
        //         this._bar = value;
        //     }
        // },
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },

    // update (dt) {},

    getTwoPlayerPractiseGameData:function () {

        let tom = {
            seatPlayerId:2,
            playerName:"Tom"
        }

        let player = {
            seatPlayerId:1,
            playerName:"Player"
        }

        let seat1 = {
            gold:1000,
            seatPlayer:player
        }

        let seat2 = {
            gold:1000,
            seatPlayer:tom
        }

        let tableInfo = {
            pokerPack:1,
            seats:[
                seat1,
                seat2
            ]
        }


        return tableInfo
    },

    startGame:function (userId) {

    }
});
